package com.rainman.simpleredis.core.process_flow;


public class ProcessWorkerReturn {

    private Integer state;

    /**
     * 错误消息
     * 或返回信息
     */
    private String returnOrFailMsg;

    public static final Integer StateSuc=200;
    public static final Integer StateRetry=350;
    public static final Integer StateErr=500;

    public ProcessWorkerReturn(Integer state ){
        this(state,"");
    }

    public ProcessWorkerReturn(Integer state, String returnOrFailMsg){
        this.returnOrFailMsg=returnOrFailMsg;
        this.state=state;
    }


    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getReturnOrFailMsg() {
        return returnOrFailMsg;
    }

    public void setReturnOrFailMsg(String returnOrFailMsg) {
        this.returnOrFailMsg = returnOrFailMsg;
    }
}
